package MyOop01;

public class GirlFriendTest {
    public static void main(String[] args) {
        //创建对象
        GirlFriend girl1= new GirlFriend();

        //给女朋友赋值
        girl1.setName("迪丽热巴");
        girl1.setWeight(100);
        girl1.setAge(18);
        girl1.setGender("女");
        //获取女朋友的信息
        System.out.println( girl1.getName());
        System.out.println(girl1.getGender());
        System.out.println(girl1.getWeight());
        System.out.println(girl1.getAge());
        //调用
        girl1.sleep();
        girl1.eat();

        System.out.println("=================================");
        //创建对象
        GirlFriend girl2= new GirlFriend();

        //给女朋友赋值
        girl2.setName("小诗诗");
        girl2.setGender("女");
        girl2.setAge(19);
        girl2.setWeight(95);
        //获取女朋友的信息
        System.out.println( girl2.getName());
        System.out.println(girl2.getAge());
        System.out.println(girl2.getWeight());
        System.out.println(girl2.getGender());
        //调用
        girl2.sleep();
        girl2.eat();

    }
}
